# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-phal-plugin-network-manager
pkgver=1.1.0
pkgrel=1
pkgdesc="NetworkManager plugin for PHAL"
url="https://github.com/OpenVoiceOS/ovos-PHAL-plugin-network-manager"
arch="noarch"
license="Apache-2.0"
depends="
	networkmanager-cli
	py3-dbus-next
	py3-ovos-bus-client
	py3-ovos-plugin-manager
	py3-ovos-utils
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-PHAL-plugin-network-manager/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/ovos-PHAL-plugin-network-manager-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
b2e19a740749c91d617a007de8000bab89197260e6ffc1d649bc182dc79f989eef8c9eb5fb1dccc4e5d31c6420f85ee3280f9707e70ada637fbfeea83efe77da  py3-ovos-phal-plugin-network-manager-1.1.0.tar.gz
"
